package com.whiteape.book.contract;


import com.whiteape.book.core.page.TxtChapter;
import com.whiteape.book.model.dto.MediaChapterBean;
import com.whiteape.book.model.dto.SiteSourceBean;
import com.whiteape.book.model.dto.CollectionMediaBean;
import com.whiteape.book.ui.base.BaseContract;

import java.util.List;

/**
 * Created by newbiechen on 17-5-16.
 */

public interface BookReadContract extends BaseContract {
    interface View extends BaseContract.BaseView {
        void showCatalog(List<MediaChapterBean> bookChapterList);
        void finishChapter();
        void errorChapter();
    }

    interface Presenter extends BaseContract.BasePresenter<View>{
        void loadCatalog(SiteSourceBean siteSourceBean, CollectionMediaBean book);
        void loadChapter(SiteSourceBean siteSourceBean, CollectionMediaBean collectionMediaBean, String bookId, List<TxtChapter> bookChapterList);
    }
}
